home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Classes / ScrollingTextField / ScrollTextField_Example / ScrollTextField.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-23  |  1.5 KB  |  70 lines

  1.  
  2. /* Generated by Interface Builder */
  3. // Uncopyrighted by Eric Celeste, 1991 <efc@mit.edu>
  4.  
  5. #import <appkit/ScrollView.h>
  6. #import <appkit/Text.h>
  7.  
  8. @interface ScrollTextField:ScrollView
  9. {
  10.     id nextText;
  11.     id textDelegate;
  12.     id myText, previousText;
  13.     float bgGray, txtGray;
  14.     int border;
  15.     BOOL selectable, editable, monofont;
  16.     char *myString;
  17. }
  18.  
  19. // BIRTH, DEATH, & REBIRTH
  20. - initFrame:(NXRect *)frameRect;
  21. - awake;
  22. - newText:(const NXRect *)frameRect;
  23. - (const char *)inspectorName;
  24. - free;
  25. - read:(NXTypedStream*)stream;
  26. - write:(NXTypedStream*)stream;
  27.  
  28. // INSTANCE VARIABLES
  29. - setBackgroundGray:(float)g;
  30. - (float)backgroundGray;
  31. - setTextGray:(float)g;
  32. - (float)textGray;
  33. - setBorderType:(int)x;
  34. - (int)borderType;
  35. - setSelectable:(BOOL)x;
  36. - (BOOL)isSelectable;
  37. - setEditable:(BOOL)x;
  38. - (BOOL)isEditable;
  39. - setMonofont:(BOOL)x;
  40. - (BOOL)isMonofont;
  41. - setTag:(int)anInt;
  42. - (int)tag;
  43. - setPreviousText:anObject;
  44. - setNextText:anObject;
  45.  
  46. // DOCVIEW TEXT
  47. - setStringValue:(const char *)string;
  48. - (const char *)stringValue;
  49. - selectText:sender;
  50.  
  51. // TEXT DELEGATE DUTIES
  52. - textDidEnd:sender endChar:(unsigned short)whyEnd;
  53. - (BOOL)textWillEnd:textObject;
  54. - (BOOL)textWillChange:textObject;
  55. - textDidChange:textObject;
  56. - textDidGetKeys:textObject isEmpty:(BOOL)flag;
  57.  
  58. // UTILITIES
  59. unsigned short ScrollingTextFilter(unsigned short theChar, int flags);
  60.  
  61. // TARGET-ACTION
  62. /* --------------------------- comment out begins -------------
  63. - setTarget:(id)anObject;
  64. - setAction:(SEL)aSelector;
  65. - takeStringValueFrom:sender;
  66. --------------------------- comment out begins -------------*/
  67.  
  68.  
  69. @end
  70.